Skip to content

Comments

Feat/voucherify2#2

Draft
marcin-slezak wants to merge 89 commits intomainfrom
feat/voucherify2
Draft

Feat/voucherify2#2
marcin-slezak wants to merge 89 commits intomainfrom
feat/voucherify2

Conversation

@marcin-slezak
Copy link
Collaborator

@marcin-slezak marcin-slezak commented Nov 23, 2023

Background

Integrating Composable UI with Voucherify using strategy suggested by Orium team:

Our approach involves two separate PRs. The first PR will update the core aspects of our Composable UI, specifically the Next.js application, the commerce-generic package, and the UI components. This includes refining Types and functions to support discounts and coupon codes, designed to remain general and not Voucherify-specific. In other words, no need for a wrapper, we can simply update the commerce-generic package directly with enhanced types and functions.

The second PR introduces the Voucherify package + documentation. This includes functions for cart operations to be used in the commerce-generic package (addItem, updateItem, removeItem, create, addCoupon, removeCoupon). The installation steps would involve calling your functions before returning the cart in each cart operation, so about 5 lines of code + the import of your package. The installation could be facilitated with a script if you'd like.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants